package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter@Getter
public class HotelComment extends BaseDomain{
    /**
     * 评论关联的用户
     */
    private User user;
    /**
     * 评论的内容
     */
    private String content;
    /**
     * 评价的星星数
     */
    private Integer starNum;
    /**
     * 评论时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date releaseTime;
    /**
     * 评论哪个酒店
     */
    private Hotel hotel;

}